home *** CD-ROM | disk | FTP | other *** search
- function InitializeComponents()
- {
- radio_5.setStyleProperty("textColor",13421772);
- radio_10.setStyleProperty("textColor",13421772);
- radio_15.setStyleProperty("textColor",13421772);
- radio_20.setStyleProperty("textColor",13421772);
- radio_speed_slow.setStyleProperty("textColor",13421772);
- radio_speed_med.setStyleProperty("textColor",13421772);
- radio_speed_fast.setStyleProperty("textColor",13421772);
- radio_accel_slow.setStyleProperty("textColor",13421772);
- radio_accel_med.setStyleProperty("textColor",13421772);
- radio_accel_fast.setStyleProperty("textColor",13421772);
- EnablePlayerComponents(2,true);
- EnablePlayerComponents(3,true);
- EnablePlayerComponents(4,false);
- skill_player2.gotoAndPlay("expert");
- skill_player3.gotoAndPlay("expert");
- skill_player4.gotoAndPlay("expert");
- }
- function EnablePlayerComponents(ndxPlayer, enable)
- {
- this["cbox_player" + ndxPlayer].setEnabled(enable);
- if(!enable)
- {
- this["cbox_player" + ndxPlayer].setValue(false);
- }
- }
- function GetCBoxPlayerNdx(cbox)
- {
- if(cbox == cbox_player2)
- {
- return 2;
- }
- if(cbox == cbox_player3)
- {
- return 3;
- }
- if(cbox == cbox_player4)
- {
- return 4;
- }
- }
- function onPlayerChecked(cbox)
- {
- if(cbox.getValue())
- {
- EnablePlayerComponents(GetCBoxPlayerNdx(cbox),true);
- if(cbox == cbox_player2)
- {
- EnablePlayerComponents(3,true);
- }
- else if(cbox == cbox_player3)
- {
- EnablePlayerComponents(4,true);
- }
- }
- else
- {
- EnablePlayerComponents(GetCBoxNdx(cbox),true);
- if(cbox == cbox_player2 || cbox == cbox_player3)
- {
- EnablePlayerComponents(4,false);
- }
- if(cbox == cbox_player2)
- {
- EnablePlayerComponents(3,false);
- }
- }
- }
- Mouse.show();
- InitializeComponents();
- this.stop();
-